from django.db import models


class BaseModel(models.Model):
    sort=models.IntegerField(default=0, verbose_name='排序')
    isdelete=models.BooleanField(default=False, verbose_name='是否删除')
    addtime=models.DateTimeField(auto_now_add=True, verbose_name='添加时间')
    class Meta:
        abstract=True # 抽象类
        ordering=['-sort'] # 排序